const express = require('express')
const apiRouter = express.Router()

apiRouter.get('/user/list', (req, res) => {
  const query = req.query
  res.send({
    status: 200,
    msg: '请求成功',
    data: query,
  })
})

apiRouter.post('/user/add', (req, res) => {
  const body = req.body
  res.send({
    status: 200,
    msg: 'post请求成功',
    data: body,
  })
})
apiRouter.delete('/user/delete', (req, res) => {
  res.send({
    status: 200,
    msg: 'delete请求成功',
  })
})
module.exports = apiRouter
